
#undef BOOST_TEST_DYN_LINK
#undef BOOST_TEST_MAIN
#undef BOOST_TEST_MODULE //TestModel2Cpp
#include <boost/test/unit_test.hpp>

#include <iostream>

#include "dataModel/Controller.hpp"

using namespace dataModel;


BOOST_AUTO_TEST_SUITE( TestingDataModelling )


BOOST_AUTO_TEST_CASE( testDirectOperations )
{
	Controller _c;
	DataContainer _d("First ave., 13", "Nowhere", "someone", 0.0, 99931);
	_c.addData(_d);
	BOOST_REQUIRE( !(_c.findDataByName("somebody") == _d) );
	BOOST_REQUIRE( _c.findDataByName("someone") == _d );
}


BOOST_AUTO_TEST_SUITE_END()

